package com.exercise.widgets.recyclerview.nestcardlist.model

import com.chad.library.adapter.base.entity.node.BaseExpandNode
import com.chad.library.adapter.base.entity.node.BaseNode

data class DataModel(
    val title: String,
    val children: MutableList<ChildModel>? = null
) : BaseExpandNode() {
    override val childNode: MutableList<BaseNode>?
        get() = children?.toMutableList()
}

data class ChildModel(
    val content: String,
) : BaseNode() {
    override val childNode: MutableList<BaseNode>?
        get() = null
}

object TopDecoration:BaseNode() {
    override val childNode: MutableList<BaseNode>?
        get() = null
}
object BottomDecoration:BaseNode() {
    override val childNode: MutableList<BaseNode>?
        get() = null
}